package com.example.administrator.common.base;


import android.app.Application;

import com.baidu.mapapi.SDKInitializer;
import com.lzy.okhttputils.OkHttpUtils;
import com.mob.MobSDK;
import com.mob.tools.proguard.ProtectedMemberKeeper;

/**
 * 如果在做一些初始化操作，请添加到此类中
 */
public class MyApp  extends Application implements ProtectedMemberKeeper {
    public static int type_id = 1;
    public static int brand_id = 1;
    public static int level_id = 1;
    public static int price_id = 1;
    public static String enter_type;

    protected String getAppkey() {
        return null;
    }

    protected String getAppSecret() {
        return null;
    }


    @Override
    public void onCreate() {
        super.onCreate();

        // 项目一启动就初始化Context和屏幕尺寸等相关参数
        Global.init(this);
           // MobSDK.init(this, this.getAppkey(), this.getAppSecret());
        MobSDK.init(this, "22bb76af49918", "6df81afc2a914f86417375a5dffb3184");
     //   System.out.print("==========================---------==========================");
        // 初始化地图
        //SDKInitializer.initialize(this);

        OkHttpUtils.init(this);

        // 短信验证登录
       /* SMSSDK.initSDK(this, "2138ec48777da",
                "d07ede171071e6a712102b8c7ea2987a");

        // 极光推送
        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);*/


        // 测试数据库
        // new DBTest().test();
    }
}
